﻿using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ComponentModel;
using System8Equations;

namespace System8ToyMC
{
	public partial class System8ResultsUC : UserControl
	{
		public System8ResultsUC()
		{
			// Required to initialize variables
			InitializeComponent();
            LayoutRoot.DataContext = this;
		}

        /// <summary>
        /// Get/Set the life time tag efficiency
        /// </summary>
        [Category("Numbers")]
        [Description("Results we are going to display")]
        public System8UpdatingResults System8R
        {
            get { return (System8UpdatingResults)GetValue(System8RProperty); }
            set { SetValue(System8RProperty, value); }
        }

        // Using a DependencyProperty as the backing store for MyProperty.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty System8RProperty =
            DependencyProperty.Register("System8R", typeof(System8UpdatingResults), typeof(System8ResultsUC), new PropertyMetadata(null));


        /// <summary>
        /// The path we need attached to this guy.
        /// </summary>
        private string _path;

        /// <summary>
        /// Get/set the path for finding our attached variables.
        /// </summary>
        public string Path
        {
            get { return _path; }
            set
            {
                _path = value;
                efflt.Path = _path + "/effLTValue";
                effsmt.Path = _path + "/effSLTValue";
                fakelt.Path = _path + "/fakeLTValue";
                fakesmt.Path = _path + "/fakeSLTValue";
            }
        }
    }
}